package com.example.entity;


import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;

/**
 * @author fyxw
 */
@Data
public class User {
    @NotEmpty(message = "用户名不能为空")
    private String name;
    @Max(100)
    private int age;
    private String sex;
}
